package com.example.birdfriends.pojo.post;

import org.apache.ibatis.type.Alias;

import java.sql.Timestamp;

@Alias("post")
public class Post {
    private Long pid;
    private String title;

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    private String theme;  // 帖子主题：提问，日常，活动，科普
    private String content;
    private Timestamp createAt;
    private String images;
    private String videos;
    private Long uid;  // 帖子作者id

    public void printPost() {
        System.out.println("Post{" +
                "pid=" + pid +
                ", title='" + title + '\'' +
                ", theme='" + theme + '\'' +
                ", content='" + content + '\'' +
                ", createAt=" + createAt +
                ", images='" + images + '\'' +
                ", videos='" + videos + '\'' +
                ", uid=" + uid +
                '}');
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setCreateAt(Timestamp createAt) {
        this.createAt = createAt;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public void setVideos(String videos) {
        this.videos = videos;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Long getPid() {
        return pid;
    }

    public String getTheme() {
        return theme;
    }

    public String getContent() {
        return content;
    }

    public Timestamp getCreateAt() {
        return createAt;
    }

    public String getImages() {
        return images;
    }

    public String getVideos() {
        return videos;
    }

    public Long getUid() {
        return uid;
    }
}
